package com.hsc.yalebao.tabChongZhi;

import android.annotation.SuppressLint;
import android.annotation.TargetApi;
import android.content.Context;
import android.content.Intent;
import android.content.res.Resources;
import android.net.Uri;
import android.os.Bundle;
import android.text.Editable;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.CheckBox;
import android.widget.EditText;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TextView;
import com.google.gson.Gson;
import com.hsc.yalebao.base.ActivityStack;
import com.hsc.yalebao.base.BaseActivity;
import com.hsc.yalebao.base.CustomApplication;
import com.hsc.yalebao.base.MainActivity;
import com.hsc.yalebao.http.AppConstants;
import com.hsc.yalebao.http.RequestNet;
import com.hsc.yalebao.model.BaseDataObject;
import com.hsc.yalebao.model.PayTypeBean;
import com.hsc.yalebao.model.PayTypeListBean;
import com.hsc.yalebao.model.ReChargeBaseData;
import com.hsc.yalebao.model.UserBaseBean;
import com.hsc.yalebao.tools.UiUtil;
import com.hsc.yalebao.weight.LogUtils;
import com.hsc.yalebao.weight.MyDialog1;
import com.zhy.http.okhttp.callback.StringCallback;
import java.io.File;
import java.io.PrintStream;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import okhttp3.Call;

public class weixinpayActivity extends BaseActivity
{
  private static Context context;
  private static File myCaptureFile;
  private String TAG = "weixinpayActivity";
  private Button btn_next;
  private CheckBox ck_weixin;
  private String guid = "";
  private int id = 0;
  private ImageView img_shuaxin;
  private boolean isWeixin = false;
  private boolean isZhifubao = false;
  private boolean iswx = false;
  private ImageView iv_title_right;
  private LinearLayout ll_weixin;
  private LinearLayout ll_zhifubao;
  private PayTypeBean mCurrentPay;
  private int memberid;
  private EditText money_edit;
  private MyDialog1 myDialog1;
  private TextView name_tv;
  View.OnClickListener onClickListener = new View.OnClickListener()
  {
    public void onClick(View paramAnonymousView)
    {
      switch (paramAnonymousView.getId())
      {
      case 2131099704:
      default:
        return;
      case 2131099699:
        CustomApplication.app.finishActivity(weixinpayActivity.this);
        return;
      case 2131100371:
        if ((PayTypeBean)weixinpayActivity.this.ll_weixin.getTag() == null)
        {
          weixinpayActivity.this.ShowDialog1("微信支付暂不可用");
          return;
        }
        if (!weixinpayActivity.this.isWeixin)
        {
          weixinpayActivity.this.ShowDialog1("微信支付暂不可用");
          return;
        }
        weixinpayActivity.this.iswx = true;
        weixinpayActivity.this.setBtnColor(weixinpayActivity.this.iswx);
        weixinpayActivity.this.tv_title.setText("微信支付(扫一扫直接支付)");
        weixinpayActivity.this.tv_miaoshu.setText(2131296494);
        weixinpayActivity.this.mCurrentPay = ((PayTypeBean)weixinpayActivity.this.ll_weixin.getTag());
        weixinpayActivity.this.paytype = weixinpayActivity.this.mCurrentPay.getIsSdkEffective();
        int i1 = (int)Double.parseDouble(weixinpayActivity.this.mCurrentPay.getMin_paymoney());
        int i2 = (int)Double.parseDouble(weixinpayActivity.this.mCurrentPay.getMax_paymoney());
        weixinpayActivity.this.tv_msg.setText("金额范围：" + i1 + "-" + i2 + "元，推荐使用，支付后立即到账");
        weixinpayActivity.this.setTitle(8, 0, 2130837809, "微信充值", 0, 8, 8, 0, true);
        return;
      case 2131100373:
        if ((PayTypeBean)weixinpayActivity.this.ll_zhifubao.getTag() == null)
        {
          weixinpayActivity.this.ShowDialog1("支付宝支付暂不可用");
          return;
        }
        if (!weixinpayActivity.this.isZhifubao)
        {
          weixinpayActivity.this.ShowDialog1("支付宝支付暂不可用");
          return;
        }
        weixinpayActivity.this.iswx = false;
        weixinpayActivity.this.setBtnColor(weixinpayActivity.this.iswx);
        weixinpayActivity.this.tv_title.setText("支付宝支付(扫一扫直接支付)");
        weixinpayActivity.this.tv_msg.setText("金额范围：10-3000元，推荐使用，支付后立即到账");
        if (weixinpayActivity.this.id == 7)
          weixinpayActivity.this.tv_msg.setText("金额范围：10-10000元，推荐使用，支付后立即到账");
        while (true)
        {
          weixinpayActivity.this.tv_miaoshu.setText(2131296494);
          weixinpayActivity.this.mCurrentPay = ((PayTypeBean)weixinpayActivity.this.ll_zhifubao.getTag());
          weixinpayActivity.this.paytype = weixinpayActivity.this.mCurrentPay.getIsSdkEffective();
          int m = (int)Double.parseDouble(weixinpayActivity.this.mCurrentPay.getMin_paymoney());
          int n = (int)Double.parseDouble(weixinpayActivity.this.mCurrentPay.getMax_paymoney());
          weixinpayActivity.this.tv_msg.setText("金额范围：" + m + "-" + n + "元，推荐使用，支付后立即到账");
          weixinpayActivity.this.setTitle(8, 0, 2130837809, "支付宝充值", 0, 8, 8, 0, true);
          return;
          weixinpayActivity.this.tv_msg.setText("金额范围：10-3000元，推荐使用，支付后立即到账");
        }
      case 2131100369:
        weixinpayActivity.this.getUserAmount(weixinpayActivity.this.yue_tv);
        return;
      case 2131100378:
      }
      weixinpayActivity.this.showLoadingDialog();
      weixinpayActivity.this.setnextBtnIsEnable(false);
      String str = weixinpayActivity.this.money_edit.getText().toString().trim();
      int i;
      int k;
      do
      {
        try
        {
          if ("".equals(str))
          {
            weixinpayActivity.this.setnextBtnIsEnable(true);
            weixinpayActivity.this.dismissLoadingDialog();
            UiUtil.showToast(weixinpayActivity.context, "请填写您的充值金额");
            return;
          }
        }
        catch (Exception localException)
        {
          localException.printStackTrace();
          weixinpayActivity.this.getPayTypeList();
          return;
        }
        i = Integer.parseInt(str);
        int j = (int)Double.parseDouble(weixinpayActivity.this.mCurrentPay.getMin_paymoney());
        k = (int)Double.parseDouble(weixinpayActivity.this.mCurrentPay.getMax_paymoney());
        if (i < j)
        {
          weixinpayActivity.this.setnextBtnIsEnable(true);
          weixinpayActivity.this.dismissLoadingDialog();
          UiUtil.showToast(weixinpayActivity.context, "充值金额最低" + j + "元");
          return;
        }
      }
      while (i <= k);
      weixinpayActivity.this.setnextBtnIsEnable(true);
      weixinpayActivity.this.dismissLoadingDialog();
      UiUtil.showToast(weixinpayActivity.context, "充值金额最高" + k + "元");
    }
  };
  private List<Integer> payIds = new ArrayList();
  private String paytype = "6";
  private TextView tv_miaoshu;
  private TextView tv_msg;
  private TextView tv_title;
  private TextView tv_wexin;
  private TextView tv_zhifubao;
  private ImageView view_weixin;
  private ImageView view_zhifubao;
  private TextView yue_tv;

  private void dealPayList(List<PayTypeBean> paramList)
  {
    this.payIds = new ArrayList();
    Iterator localIterator;
    if ((paramList != null) && (paramList.size() > 0))
      localIterator = paramList.iterator();
    while (true)
    {
      if (!localIterator.hasNext())
      {
        System.out.println(this.payIds + "         " + this.paytype);
        int j = Integer.valueOf(this.paytype).intValue();
        if (this.payIds.contains(Integer.valueOf(j)))
          break;
        setnextBtnIsEnable(true);
        dismissLoadingDialog();
        this.myDialog1 = new MyDialog1(this);
        this.myDialog1.setMessage("此充值方式已关闭,请返回选择其他充值方式");
        this.myDialog1.btn_confirm.setOnClickListener(new View.OnClickListener()
        {
          public void onClick(View paramAnonymousView)
          {
            weixinpayActivity.this.myDialog1.dismiss();
          }
        });
        this.myDialog1.show();
        return;
      }
      PayTypeBean localPayTypeBean = (PayTypeBean)localIterator.next();
      try
      {
        int i = Integer.valueOf(localPayTypeBean.getIsSdkEffective()).intValue();
        this.payIds.add(Integer.valueOf(i));
      }
      catch (Exception localException1)
      {
      }
    }
    String str = this.money_edit.getText().toString().trim();
    try
    {
      if ("".equals(str))
      {
        setnextBtnIsEnable(true);
        dismissLoadingDialog();
        UiUtil.showToast(context, "请填写您的充值金额");
        return;
      }
    }
    catch (Exception localException2)
    {
      localException2.printStackTrace();
      return;
    }
    int k = Integer.parseInt(str);
    int m = (int)Double.parseDouble(this.mCurrentPay.getMin_paymoney());
    int n = (int)Double.parseDouble(this.mCurrentPay.getMax_paymoney());
    if (k < m)
    {
      setnextBtnIsEnable(true);
      dismissLoadingDialog();
      UiUtil.showToast(context, "充值金额最低" + m + "元");
      return;
    }
    if (k > n)
    {
      setnextBtnIsEnable(true);
      dismissLoadingDialog();
      UiUtil.showToast(context, "充值金额最高" + n + "元");
      return;
    }
    getPay(this.paytype, str);
  }

  private void getPay(String paramString1, final String paramString2)
  {
    HashMap localHashMap = new HashMap();
    localHashMap.put("amount", paramString2);
    localHashMap.put("guid", this.guid);
    localHashMap.put("client_Ip", CustomApplication.app.NetIP);
    localHashMap.put("payment_id", paramString1);
    LogUtils.e(this.TAG, "guid" + this.guid);
    LogUtils.e(this.TAG, "client_Ip" + CustomApplication.app.NetIP);
    LogUtils.e(this.TAG, "payment_id" + paramString1);
    RequestNet.get(context, AppConstants.URL_RECHARGE, localHashMap, new StringCallback()
    {
      public void onError(Call paramAnonymousCall, Exception paramAnonymousException)
      {
        weixinpayActivity.this.dismissLoadingDialog();
        weixinpayActivity.this.setnextBtnIsEnable(true);
        LogUtils.e("获取失败", "getPay()-result:" + paramAnonymousException);
      }

      public void onResponse(String paramAnonymousString)
      {
        LogUtils.e("获取成功", "getPay()-result:" + paramAnonymousString);
        weixinpayActivity.this.dismissLoadingDialog();
        weixinpayActivity.this.setnextBtnIsEnable(true);
        Gson localGson = new Gson();
        try
        {
          localReChargeBaseData = (ReChargeBaseData)localGson.fromJson(paramAnonymousString, ReChargeBaseData.class);
          if (localReChargeBaseData == null)
            return;
        }
        catch (Exception localException)
        {
          ReChargeBaseData localReChargeBaseData;
          do
          {
            while (true)
            {
              localException.printStackTrace();
              localReChargeBaseData = null;
            }
            if (localReChargeBaseData.getFlag() == -4)
            {
              weixinpayActivity.activityStack.backToMain(MainActivity.class, weixinpayActivity.context);
              return;
            }
            if (localReChargeBaseData.getFlag() == -2)
            {
              weixinpayActivity.this.showDownWireDialog();
              return;
            }
            if (localReChargeBaseData.getFlag() == -3)
            {
              weixinpayActivity.this.ShowFengjinDialog();
              return;
            }
            if (localReChargeBaseData.getFlag() == 0)
            {
              weixinpayActivity.this.ShowDialog1(localReChargeBaseData.getMsg());
              return;
            }
          }
          while (localReChargeBaseData.getFlag() != 1);
          String str = localReChargeBaseData.getResult();
          LogUtils.d("获取成功", "getPay()-result:" + str);
          Intent localIntent = new Intent();
          localIntent.setClass(weixinpayActivity.context, WeixinCodeActivity.class);
          localIntent.putExtra("money", paramString2);
          localIntent.putExtra("result", localReChargeBaseData);
          localIntent.putExtra("paytype", weixinpayActivity.this.paytype);
          localIntent.putExtra("payTypeBean", weixinpayActivity.this.mCurrentPay);
          weixinpayActivity.this.startActivity(localIntent);
        }
      }
    });
  }

  private void getUserAmount(TextView paramTextView)
  {
    this.yue_tv.setText("获取中...");
    HashMap localHashMap = new HashMap();
    localHashMap.put("guid", this.guid);
    LogUtils.d(this.TAG, "guid:" + this.guid);
    LogUtils.d(this.TAG, "URL:" + AppConstants.URL_GET_USER_AMOUNT);
    RequestNet.get(context, AppConstants.URL_GET_USER_AMOUNT, localHashMap, new StringCallback()
    {
      public void onError(Call paramAnonymousCall, Exception paramAnonymousException)
      {
        LogUtils.e(weixinpayActivity.this.TAG, "获取失败,getUserAmount-result:" + paramAnonymousException);
      }

      public void onResponse(String paramAnonymousString)
      {
        LogUtils.d(weixinpayActivity.this.TAG, "result:" + paramAnonymousString);
        Gson localGson = new Gson();
        String str;
        try
        {
          localBaseDataObject = (BaseDataObject)localGson.fromJson(paramAnonymousString, BaseDataObject.class);
          if (localBaseDataObject == null)
            return;
        }
        catch (Exception localException)
        {
          BaseDataObject localBaseDataObject;
          do
          {
            while (true)
            {
              localException.printStackTrace();
              localBaseDataObject = null;
            }
            if (localBaseDataObject.getFlag() == -4)
            {
              weixinpayActivity.activityStack.backToMain(MainActivity.class, weixinpayActivity.context);
              return;
            }
            if (localBaseDataObject.getFlag() == 0)
            {
              UiUtil.showToast(weixinpayActivity.context, localBaseDataObject.getMsg());
              return;
            }
            if (localBaseDataObject.getFlag() == -2)
            {
              weixinpayActivity.this.showDownWireDialog();
              return;
            }
            if (localBaseDataObject.getFlag() == -3)
            {
              weixinpayActivity.this.ShowFengjinDialog();
              return;
            }
          }
          while (localBaseDataObject.getFlag() != 1);
          str = localBaseDataObject.getResult();
          if (str == null);
        }
        try
        {
          CustomApplication.app.userAmount = Double.parseDouble(str);
          LogUtils.d("获取成功", "getUserAmount()-result:" + str);
          weixinpayActivity.this.yue_tv.setText(str);
          return;
        }
        catch (NumberFormatException localNumberFormatException)
        {
          while (true)
            localNumberFormatException.printStackTrace();
        }
      }
    });
  }

  private void init()
  {
    this.name_tv = ((TextView)findViewById(2131099922));
    if (CustomApplication.app.userBaseBean != null)
    {
      String str = CustomApplication.app.userBaseBean.getUser_name();
      this.name_tv.setText(str);
    }
    this.yue_tv = ((TextView)findViewById(2131100368));
    this.tv_wexin = ((TextView)findViewById(2131100372));
    this.tv_zhifubao = ((TextView)findViewById(2131100374));
    this.img_shuaxin = ((ImageView)findViewById(2131100369));
    this.view_weixin = ((ImageView)findViewById(2131100375));
    this.view_zhifubao = ((ImageView)findViewById(2131100376));
    this.money_edit = ((EditText)findViewById(2131100370));
    this.ll_weixin = ((LinearLayout)findViewById(2131100371));
    this.ll_zhifubao = ((LinearLayout)findViewById(2131100373));
    this.ck_weixin = ((CheckBox)findViewById(2131099777));
    this.btn_next = ((Button)findViewById(2131100378));
    this.tv_title = ((TextView)findViewById(2131099849));
    this.tv_msg = ((TextView)findViewById(2131100377));
    this.tv_miaoshu = ((TextView)findViewById(2131099845));
    this.img_shuaxin.setOnClickListener(this.onClickListener);
    this.ll_weixin.setOnClickListener(this.onClickListener);
    this.ll_zhifubao.setOnClickListener(this.onClickListener);
    this.btn_next.setOnClickListener(this.onClickListener);
  }

  private void setBtnColor(boolean paramBoolean)
  {
    if (paramBoolean)
    {
      this.tv_wexin.setTextColor(context.getResources().getColor(2131165336));
      this.tv_zhifubao.setTextColor(context.getResources().getColor(2131165395));
      this.view_weixin.setBackgroundColor(context.getResources().getColor(2131165336));
      this.view_zhifubao.setBackgroundColor(context.getResources().getColor(2131165341));
      return;
    }
    this.tv_zhifubao.setTextColor(context.getResources().getColor(2131165336));
    this.tv_wexin.setTextColor(context.getResources().getColor(2131165395));
    this.view_weixin.setBackgroundColor(context.getResources().getColor(2131165341));
    this.view_zhifubao.setBackgroundColor(context.getResources().getColor(2131165336));
  }

  private void setnextBtnIsEnable(boolean paramBoolean)
  {
    this.btn_next.setEnabled(paramBoolean);
  }

  public void getPayTypeList()
  {
    HashMap localHashMap = new HashMap();
    if (CustomApplication.app.userBaseBean == null)
    {
      dismissLoadingDialog();
      setnextBtnIsEnable(true);
      return;
    }
    localHashMap.put("memberid", CustomApplication.app.userBaseBean.getMemberid());
    RequestNet.get(this, AppConstants.URL_GETPAYSTATE, localHashMap, new StringCallback()
    {
      public void onError(Call paramAnonymousCall, Exception paramAnonymousException)
      {
        LogUtils.e(weixinpayActivity.this.TAG, "获取失败getoauthuserstate()-result:" + paramAnonymousException);
      }

      public void onResponse(String paramAnonymousString)
      {
        System.out.println(paramAnonymousString);
        Gson localGson = new Gson();
        try
        {
          localPayTypeListBean = (PayTypeListBean)localGson.fromJson(paramAnonymousString, PayTypeListBean.class);
          if (localPayTypeListBean == null)
          {
            weixinpayActivity.this.dismissLoadingDialog();
            weixinpayActivity.this.setnextBtnIsEnable(true);
            return;
          }
        }
        catch (Exception localException)
        {
          PayTypeListBean localPayTypeListBean;
          do
          {
            while (true)
            {
              localException.printStackTrace();
              localPayTypeListBean = null;
            }
            if (localPayTypeListBean.getFlag() == -4)
            {
              weixinpayActivity.this.dismissLoadingDialog();
              weixinpayActivity.this.setnextBtnIsEnable(true);
              ActivityStack.getInstance().backToMain(MainActivity.class, weixinpayActivity.this);
              return;
            }
            if (localPayTypeListBean.getFlag() == 0)
            {
              weixinpayActivity.this.dismissLoadingDialog();
              weixinpayActivity.this.setnextBtnIsEnable(true);
              weixinpayActivity.this.ShowDialog1(localPayTypeListBean.getMsg());
              return;
            }
            if (localPayTypeListBean.getFlag() == -2)
            {
              weixinpayActivity.this.dismissLoadingDialog();
              weixinpayActivity.this.setnextBtnIsEnable(true);
              MainActivity.mainActivity.showOffLineDialog();
              return;
            }
            if (localPayTypeListBean.getFlag() == -3)
            {
              weixinpayActivity.this.dismissLoadingDialog();
              weixinpayActivity.this.setnextBtnIsEnable(true);
              MainActivity.mainActivity.showFengjinDialog();
              return;
            }
          }
          while (localPayTypeListBean.getFlag() != 1);
          weixinpayActivity.this.dealPayList(localPayTypeListBean.getResult());
        }
      }
    });
  }

  @TargetApi(19)
  protected void onCreate(Bundle paramBundle)
  {
    super.onCreate(paramBundle);
    setContentView(2130903230);
    context = this;
    if (CustomApplication.app.userBaseBean != null)
    {
      this.memberid = CustomApplication.app.userBaseBean.getMemberid();
      this.guid = CustomApplication.app.userBaseBean.getGuid();
    }
    init();
    Intent localIntent = getIntent();
    String str = localIntent.getStringExtra("type");
    this.isZhifubao = localIntent.getBooleanExtra("isZhifubao", false);
    this.isWeixin = localIntent.getBooleanExtra("isWeixin", false);
    this.id = localIntent.getIntExtra("id", 0);
    ArrayList localArrayList = (ArrayList)localIntent.getSerializableExtra("listobj");
    this.paytype = localIntent.getStringExtra("paytype");
    if ("weixin".equals(str))
    {
      setTitle(8, 0, 2130837809, "微信充值", 0, 8, 8, 0, true);
      this.iswx = true;
      setBtnColor(this.iswx);
      this.tv_title.setText("微信支付(扫一扫直接支付)");
      this.tv_miaoshu.setText(2131296494);
      this.tv_msg.setText("金额范围：10-3000元，推荐使用，支付后立即到账");
      this.paytype = this.paytype;
    }
    switch (this.id)
    {
    case 8:
    case 11:
    default:
    case 6:
    case 7:
    case 9:
    case 10:
    case 12:
    case 13:
    case 14:
    case 15:
    case 16:
    case 17:
    case 18:
    case 19:
    case 20:
    case 21:
    case 22:
    case 23:
      int n;
      do
      {
        int i2;
        do
        {
          int i4;
          do
          {
            int i6;
            do
            {
              int i8;
              do
              {
                int i10;
                do
                {
                  int i12;
                  do
                  {
                    int i14;
                    do
                    {
                      int k = (int)Double.parseDouble(this.mCurrentPay.getMin_paymoney());
                      int m = (int)Double.parseDouble(this.mCurrentPay.getMax_paymoney());
                      this.tv_msg.setText("金额范围：" + k + "-" + m + "元，推荐使用，支付后立即到账");
                      getUserAmount(this.yue_tv);
                      return;
                      setTitle(8, 0, 2130837809, "支付宝充值", 0, 8, 8, 0, true);
                      this.iswx = false;
                      setBtnColor(this.iswx);
                      this.tv_title.setText("支付宝支付(扫一扫直接支付)");
                      this.tv_miaoshu.setText(2131296494);
                      if (this.id == 7)
                        this.tv_msg.setText("金额范围：10-10000元，推荐使用，支付后立即到账");
                      while (true)
                      {
                        this.paytype = this.paytype;
                        break;
                        this.tv_msg.setText("金额范围：10-3000元，推荐使用，支付后立即到账");
                      }
                      i14 = 0;
                    }
                    while (i14 >= localArrayList.size());
                    PayTypeBean localPayTypeBean9 = (PayTypeBean)localArrayList.get(i14);
                    int i15 = Integer.valueOf(localPayTypeBean9.getIsSdkEffective()).intValue();
                    if (i15 == 6)
                      this.ll_weixin.setTag(localPayTypeBean9);
                    while (true)
                    {
                      if (i15 == this.id)
                        this.mCurrentPay = localPayTypeBean9;
                      i14++;
                      break;
                      if (i15 == 7)
                        this.ll_zhifubao.setTag(localPayTypeBean9);
                    }
                    i12 = 0;
                  }
                  while (i12 >= localArrayList.size());
                  PayTypeBean localPayTypeBean8 = (PayTypeBean)localArrayList.get(i12);
                  int i13 = Integer.valueOf(localPayTypeBean8.getIsSdkEffective()).intValue();
                  if (i13 == 10)
                    this.ll_weixin.setTag(localPayTypeBean8);
                  while (true)
                  {
                    if (i13 == this.id)
                      this.mCurrentPay = localPayTypeBean8;
                    i12++;
                    break;
                    if (i13 == 9)
                      this.ll_zhifubao.setTag(localPayTypeBean8);
                  }
                  i10 = 0;
                }
                while (i10 >= localArrayList.size());
                PayTypeBean localPayTypeBean7 = (PayTypeBean)localArrayList.get(i10);
                int i11 = Integer.valueOf(localPayTypeBean7.getIsSdkEffective()).intValue();
                if (i11 == 13)
                  this.ll_weixin.setTag(localPayTypeBean7);
                while (true)
                {
                  if (i11 == this.id)
                    this.mCurrentPay = localPayTypeBean7;
                  i10++;
                  break;
                  if (i11 == 12)
                    this.ll_zhifubao.setTag(localPayTypeBean7);
                }
                i8 = 0;
              }
              while (i8 >= localArrayList.size());
              PayTypeBean localPayTypeBean6 = (PayTypeBean)localArrayList.get(i8);
              int i9 = Integer.valueOf(localPayTypeBean6.getIsSdkEffective()).intValue();
              if (i9 == 15)
                this.ll_weixin.setTag(localPayTypeBean6);
              while (true)
              {
                if (i9 == this.id)
                  this.mCurrentPay = localPayTypeBean6;
                i8++;
                break;
                if (i9 == 14)
                  this.ll_zhifubao.setTag(localPayTypeBean6);
              }
              i6 = 0;
            }
            while (i6 >= localArrayList.size());
            PayTypeBean localPayTypeBean5 = (PayTypeBean)localArrayList.get(i6);
            int i7 = Integer.valueOf(localPayTypeBean5.getIsSdkEffective()).intValue();
            if (i7 == 17)
              this.ll_weixin.setTag(localPayTypeBean5);
            while (true)
            {
              if (i7 == this.id)
                this.mCurrentPay = localPayTypeBean5;
              i6++;
              break;
              if (i7 == 16)
                this.ll_zhifubao.setTag(localPayTypeBean5);
            }
            i4 = 0;
          }
          while (i4 >= localArrayList.size());
          PayTypeBean localPayTypeBean4 = (PayTypeBean)localArrayList.get(i4);
          int i5 = Integer.valueOf(localPayTypeBean4.getIsSdkEffective()).intValue();
          if (i5 == 19)
            this.ll_weixin.setTag(localPayTypeBean4);
          while (true)
          {
            if (i5 == this.id)
              this.mCurrentPay = localPayTypeBean4;
            i4++;
            break;
            if (i5 == 18)
              this.ll_zhifubao.setTag(localPayTypeBean4);
          }
          i2 = 0;
        }
        while (i2 >= localArrayList.size());
        PayTypeBean localPayTypeBean3 = (PayTypeBean)localArrayList.get(i2);
        int i3 = Integer.valueOf(localPayTypeBean3.getIsSdkEffective()).intValue();
        if (i3 == 21)
          this.ll_weixin.setTag(localPayTypeBean3);
        while (true)
        {
          if (i3 == this.id)
            this.mCurrentPay = localPayTypeBean3;
          i2++;
          break;
          if (i3 == 20)
            this.ll_zhifubao.setTag(localPayTypeBean3);
        }
        n = 0;
      }
      while (n >= localArrayList.size());
      PayTypeBean localPayTypeBean2 = (PayTypeBean)localArrayList.get(n);
      int i1 = Integer.valueOf(localPayTypeBean2.getIsSdkEffective()).intValue();
      if (i1 == 23)
        this.ll_weixin.setTag(localPayTypeBean2);
      while (true)
      {
        if (i1 == this.id)
          this.mCurrentPay = localPayTypeBean2;
        n++;
        break;
        if (i1 == 22)
          this.ll_zhifubao.setTag(localPayTypeBean2);
      }
    case 24:
    case 25:
    }
    int i = 0;
    label1261: PayTypeBean localPayTypeBean1;
    int j;
    if (i < localArrayList.size())
    {
      localPayTypeBean1 = (PayTypeBean)localArrayList.get(i);
      j = Integer.valueOf(localPayTypeBean1.getIsSdkEffective()).intValue();
      if (j != 25)
        break label1333;
      this.ll_weixin.setTag(localPayTypeBean1);
    }
    while (true)
    {
      if (j == this.id)
        this.mCurrentPay = localPayTypeBean1;
      i++;
      break label1261;
      break;
      label1333: if (j == 24)
        this.ll_zhifubao.setTag(localPayTypeBean1);
    }
  }

  protected void onPause()
  {
    super.onPause();
    if (myCaptureFile != null)
      sendBroadcast(new Intent("android.intent.action.MEDIA_SCANNER_SCAN_FILE", Uri.fromFile(myCaptureFile)));
  }

  protected void onResume()
  {
    super.onResume();
  }

  @SuppressLint({"NewApi"})
  public void setTitle(int paramInt1, int paramInt2, int paramInt3, String paramString, int paramInt4, int paramInt5, int paramInt6, int paramInt7, boolean paramBoolean)
  {
    View localView = findViewById(2131099716);
    if (paramBoolean)
      localView.setVisibility(0);
    while (true)
    {
      ((TextView)localView.findViewById(2131099701)).setText(paramString);
      ((TextView)localView.findViewById(2131099700)).setVisibility(paramInt1);
      ImageView localImageView = (ImageView)localView.findViewById(2131099699);
      localImageView.setVisibility(paramInt2);
      localImageView.setOnClickListener(this.onClickListener);
      localImageView.setImageResource(paramInt3);
      TextView localTextView = (TextView)localView.findViewById(2131099702);
      localTextView.setVisibility(paramInt5);
      localTextView.setOnClickListener(this.onClickListener);
      this.iv_title_right = ((ImageView)localView.findViewById(2131099704));
      this.iv_title_right.setVisibility(paramInt6);
      this.iv_title_right.setOnClickListener(this.onClickListener);
      this.iv_title_right.setImageResource(paramInt7);
      return;
      localView.setVisibility(8);
    }
  }
}

/* Location:           C:\Users\user\Desktop\dd28_pcdd720\classes_dex2jar.jar
 * Qualified Name:     com.hsc.yalebao.tabChongZhi.weixinpayActivity
 * JD-Core Version:    0.6.2
 */